/*
 * XML Type:  EAttribute
 * Namespace: http://www.eclipse.org/emf/2002/Ecore
 * Java type: org.eclipse.emf.x2002.ecore.EAttribute
 *
 * Automatically generated - do not modify.
 */
package org.eclipse.emf.x2002.ecore.impl;
/**
 * An XML EAttribute(@http://www.eclipse.org/emf/2002/Ecore).
 *
 * This is a complex type.
 */
public class EAttributeImpl extends org.eclipse.emf.x2002.ecore.impl.EStructuralFeatureImpl implements org.eclipse.emf.x2002.ecore.EAttribute
{
    private static final long serialVersionUID = 1L;
    
    public EAttributeImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName ID$0 = 
        new javax.xml.namespace.QName("", "iD");
    private static final javax.xml.namespace.QName EATTRIBUTETYPE$2 = 
        new javax.xml.namespace.QName("", "eAttributeType");
    
    
    /**
     * Gets the "iD" attribute
     */
    public boolean getID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$0);
            if (target == null)
            {
                return false;
            }
            return target.getBooleanValue();
        }
    }
    
    /**
     * Gets (as xml) the "iD" attribute
     */
    public org.eclipse.emf.x2002.ecore.EBoolean xgetID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.eclipse.emf.x2002.ecore.EBoolean target = null;
            target = (org.eclipse.emf.x2002.ecore.EBoolean)get_store().find_attribute_user(ID$0);
            return target;
        }
    }
    
    /**
     * True if has "iD" attribute
     */
    public boolean isSetID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(ID$0) != null;
        }
    }
    
    /**
     * Sets the "iD" attribute
     */
    public void setID(boolean id)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(ID$0);
            }
            target.setBooleanValue(id);
        }
    }
    
    /**
     * Sets (as xml) the "iD" attribute
     */
    public void xsetID(org.eclipse.emf.x2002.ecore.EBoolean id)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.eclipse.emf.x2002.ecore.EBoolean target = null;
            target = (org.eclipse.emf.x2002.ecore.EBoolean)get_store().find_attribute_user(ID$0);
            if (target == null)
            {
                target = (org.eclipse.emf.x2002.ecore.EBoolean)get_store().add_attribute_user(ID$0);
            }
            target.set(id);
        }
    }
    
    /**
     * Unsets the "iD" attribute
     */
    public void unsetID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(ID$0);
        }
    }
    
    /**
     * Gets the "eAttributeType" attribute
     */
    public java.lang.String getEAttributeType()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(EATTRIBUTETYPE$2);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "eAttributeType" attribute
     */
    public org.apache.xmlbeans.XmlAnyURI xgetEAttributeType()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlAnyURI target = null;
            target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_attribute_user(EATTRIBUTETYPE$2);
            return target;
        }
    }
    
    /**
     * True if has "eAttributeType" attribute
     */
    public boolean isSetEAttributeType()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(EATTRIBUTETYPE$2) != null;
        }
    }
    
    /**
     * Sets the "eAttributeType" attribute
     */
    public void setEAttributeType(java.lang.String eAttributeType)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(EATTRIBUTETYPE$2);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(EATTRIBUTETYPE$2);
            }
            target.setStringValue(eAttributeType);
        }
    }
    
    /**
     * Sets (as xml) the "eAttributeType" attribute
     */
    public void xsetEAttributeType(org.apache.xmlbeans.XmlAnyURI eAttributeType)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlAnyURI target = null;
            target = (org.apache.xmlbeans.XmlAnyURI)get_store().find_attribute_user(EATTRIBUTETYPE$2);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlAnyURI)get_store().add_attribute_user(EATTRIBUTETYPE$2);
            }
            target.set(eAttributeType);
        }
    }
    
    /**
     * Unsets the "eAttributeType" attribute
     */
    public void unsetEAttributeType()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(EATTRIBUTETYPE$2);
        }
    }
}
